package com.example.demo.strategy;

import com.example.demo.enums.CalculationEnum;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.LinkedHashMap;
import java.util.Map;

public class StrategyMapContext implements CalculationMethodStrategy{
    private Map<String,CalculationMethodStrategy> strategyMap = new LinkedHashMap<>();

    @Autowired
    public StrategyMapContext (Map<String,CalculationMethodStrategy> strategyMap) {
        this.strategyMap.clear();
        this.strategyMap.putAll(strategyMap);
    }

    @Override
    public boolean calculate(String preContent, String value) {
        return false;
    }

    @Override
    public CalculationEnum getCalculationEnum() {
        return null;
    }
}
